Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix skipping map and array fields that are missing in the reader schema #208

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

anekdoti
Copy link

@anekdoti anekdoti commented Sep 13, 2024

This PR fixes #207.

Previously, the code, generated by the compiler, tried to set the hint size on the target even when the (array or map) data was actually skipped because of a field in the writer schema missing in the reader schema. The bugfix adds a parameter to the methods generating the VM code for block entry and exit that removes the hint size operation if the reader schema is nil. Jumps are adjusted accordingly as well. A new test under test/array-removed was added that failed previously.

Thank you, @tomasfabian, for your hints!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant